home *** CD-ROM | disk | FTP | other *** search
- @echo off
-
- set COPYCMD=/Y
-
- set INSEXT=001
- set LIGEXT=_IS
- set ORGEXT=ORG
- set BAKEXT=BAK
-
- set WINDOWSDIR=C:\WINDOWS
- if NOT .%windir%. == .. set WINDOWSDIR=%windir%
-
- if EXIST %WINDOWSDIR%\winsock.%ORGEXT% goto save_org_done
- copy %WINDOWSDIR%\winsock.%INSEXT% %WINDOWSDIR%\winsock.%ORGEXT% > nul
-
- :save_org_done
-
- if .%1. == .ISHARE. goto ishare_switch
- if .%1. == .iShare. goto ishare_switch
- if .%1. == .ishare. goto ishare_switch
- if .%1. == .LIG. goto ishare_switch
- if .%1. == .lig. goto ishare_switch
- if .%1. == .ORIG. goto orig_switch
- if .%1. == .orig. goto orig_switch
- if .%1. == .ORG. goto orig_switch
- if .%1. == .org. goto orig_switch
-
- echo.
- echo Usage: WSSW16 ISHARE -- Artisoft i.Share WinSock
- echo -or- WSSW16 ORIG -- Original WinSock
- echo.
- goto all_done
-
- :ishare_switch
- copy %WINDOWSDIR%\winsock.DLL %WINDOWSDIR%\winsock.%BAKEXT% > nul
-
- :copy_LIG_to_DLL
- copy %WINDOWSDIR%\winsock.%LIGEXT% %WINDOWSDIR%\winsock.DLL > nul
-
- goto all_done
-
- :orig_switch
- copy %WINDOWSDIR%\winsock.DLL %WINDOWSDIR%\winsock.%BAKEXT% > nul
-
- :copy_ORG_to_DLL
- copy %WINDOWSDIR%\winsock.%ORGEXT% %WINDOWSDIR%\winsock.DLL > nul
-
- :all_done
-
- set INSEXT=
- set LIGEXT=
- set ORGEXT=
- set BAKEXT=
- set WINDOWSDIR=
-
- set COPYCMD=
-
-